﻿using Microsoft.EntityFrameworkCore.Design;

namespace Configuration.DataBase.Data;

public class ConfigurationDatabaseContextFactory : IDesignTimeDbContextFactory<ConfigurationDatabaseContext>
{
	public ConfigurationDatabaseContext CreateDbContext(string[] args)
	{
		const string designTimeConnectionString = "Server=127.0.0.1,14333;Database=db-config;User ID=sa;Password=Aa123456.;TrustServerCertificate=true;";
        
		return new ConfigurationDatabaseContext(designTimeConnectionString);
	}
}
